package com.smart.five.ioc.injectfun.replace;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author junrui.wang
 * @create 2018/6/6
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/smart/five/ioc/injectfun/replace/beans.xml");
        Boss1 boss1 = (Boss1) ac.getBean("boss1");
        Car car1 = boss1.getCar();
        car1.introduce();


    }
}
